package com.killer.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.killer.dao.ResumeDao;
import com.killer.pojo.Resume;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Killer
 * @date ：Created in 21-2-24 下午5:32
 * @description：${description}
 * @modified By：
 * @version: version
 */
@Service
public class ResumeService {

    @Autowired
    private ResumeDao resumeDao;

    @Cacheable(value = "resume", key = "#name")
    public List<Resume> listResumeByName(String name){
        return resumeDao.selectList(new QueryWrapper<Resume>().eq("name", name));
    }

}
